<form #form (ngSubmit)="submit()" [appApiAction]="formPromise">
    <header>
        <div class="left">
            <a routerLink="/login">{{'cancel' | i18n}}</a>
        </div>
        <div class="center">
            <span class="title">{{'passwordHint' | i18n}}</span>
        </div>
        <div class="right">
            <button type="submit" appBlurClick [disabled]="form.loading">
                <span [hidden]="form.loading">{{'submit' | i18n}}</span>
                <i class="fa fa-spinner fa-lg fa-spin" [hidden]="!form.loading" aria-hidden="true"></i>
            </button>
        </div>
    </header>
    <content>
        <div class="box">
            <div class="box-content">
                <div class="box-content-row" appBoxRow>
                    <label for="email">{{'emailAddress' | i18n}}</label>
                    <input id="email" type="text" name="Email" [(ngModel)]="email" required appAutofocus
                        inputmode="email" appInputVerbatim="false">
                </div>
            </div>
            <div class="box-footer">
                {{'enterEmailToGetHint' | i18n}}
            </div>
        </div>
    </content>
</form>
